import request from '@/utils/request'

// 查询财务主列表
export function listAccountHead(query) {
  return request({
    url: '/account/accountHead/list',
    method: 'get',
    params: query
  })
}

// 查询财务主详细
export function getAccountHead(id) {
  return request({
    url: '/account/accountHead/' + id,
    method: 'get'
  })
}

// 新增财务主
export function addAccountHead(data) {
  return request({
    url: '/account/accountHead',
    method: 'post',
    data: data
  })
}

// 修改财务主
export function updateAccountHead(data) {
  return request({
    url: '/account/accountHead',
    method: 'put',
    data: data
  })
}

// 删除财务主
export function delAccountHead(id) {
  return request({
    url: '/account/accountHead/' + id,
    method: 'delete'
  })
}
